powered by
nth(x, k)
colMedians
x <- rnorm(10000) nth(x, 5000) sort(x)[5000]
Run the code above in your browser using DataLab